/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2022/3/29
 * \* Time: 17:44
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
public class Demo17 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        synchronized (object){
            System.out.println("wait前：");
            object.wait();
            System.out.println("wait后：");
        }
    }
}
